<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />

	<link href="#{config.css}" rel="stylesheet" type="text/css" />

	<title>
		<ui:insert name="titulo">Sistema de Automacao Comercial de Veiculos Automotores</ui:insert>
	</title>


</h:head>

<h:body class="principal">

	<!-- Observações sobre os atributo -->
	<!-- OBS: Statul: quando habilidade, salva o estado do layout em um cookie da sessão. Interessante para o usuário nao perder, menu´s abertos -->
	<!-- abas abertas e etc. Caso incomodar, só retirar -->
	<p:layout fullPage="true" styleClass="layout">

		<p:layoutUnit position="north" size="55">
			<h:form>
				<p:menubar styleClass="menubar" >

					<p:submenu label="Sistema" icon="ui-icon-document"
						styleClass="submenu">
						<p:submenu label="Manutencao" icon="ui-icon-contact">
							<p:menuitem value="Tabelas do Sistema" url="/faces/template/template_tabelas.faces" />
							<p:menuitem value="Cadastro Usuario" url="#" />
						</p:submenu>
					</p:submenu>

					<p:submenu label="Vendas" icon="ui-icon-document"
						styleClass="submenu">
						<p:submenu label="Balcão" icon="ui-icon-contact">
							<p:menuitem value="Carro" url="#" />
						</p:submenu>
					</p:submenu>
					
					<f:facet name="options">
						<p:inputText style="margin-right:10px" />
						<p:commandButton value="Logout" icon="ui-icon-extlink" action="/faces/template/template.faces" />
					</f:facet>
				</p:menubar>
			</h:form>
		</p:layoutUnit>

		<p:layoutUnit position="center" >
			<h:form>
				<ui:insert name="centro" />
			</h:form>
		</p:layoutUnit>

		<p:layoutUnit position="south">
			Sistema de Automação Comercial SPK
		</p:layoutUnit>

	</p:layout>
</h:body>
</html>
